﻿<ResourceDictionary
    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib">

    <!---
    ################################################################################
    Styles.
    ################################################################################
    -->

    <!---
    ================================================================================
    Buttons.
    ================================================================================
    -->
    
    <Color x:Key="ButtonBackgroundColor">#F1F1EC</Color>

    <SolidColorBrush x:Key="ButtonBackgroundBrush" 
                     Color="{StaticResource ButtonBackgroundColor}"/>

    <sys:Double x:Key="ButtonSmallFontSize">11</sys:Double>
    <FontWeight x:Key="ButtonSmallFontWeight">Bold</FontWeight>
    <sys:Double x:Key="ButtonNormalFontSize">18</sys:Double>
    <FontWeight x:Key="ButtonNormalFontWeight">Normal</FontWeight>

    <!---
    ================================================================================
    Explicit button styles.
    ================================================================================
     -->

    <Style 
        x:Key="ButtonSmallStyle"
        TargetType="{x:Type ButtonBase}">
        <Setter Property="FontSize" Value="{StaticResource ButtonSmallFontSize}" />
        <Setter Property="FontWeight" Value="{StaticResource ButtonSmallFontWeight}" />
        <Setter Property="Padding" Value="3" />
        <Setter Property="Background" Value="{StaticResource ButtonBackgroundBrush}" />
    </Style>

    <Style 
        x:Key="ButtonNormalStyle"
        TargetType="{x:Type ButtonBase}"
        BasedOn="{StaticResource ButtonSmallStyle}">
        <Setter Property="FontSize" Value="{StaticResource ButtonNormalFontSize}" />
        <Setter Property="FontWeight" Value="{StaticResource ButtonNormalFontWeight}" />
        <Setter Property="Padding" Value="5" />
    </Style>

    <Style 
        x:Key="ButtonNormalStyleWithMargins"
        TargetType="{x:Type ButtonBase}"
        BasedOn="{StaticResource ButtonNormalStyle}">
        <Setter Property="Margin" Value="5" />
    </Style>

    <!--
    ================================================================================
    Implicit button styles.
    ================================================================================
    -->

    <Style TargetType="{x:Type ToggleButton}"
           BasedOn="{StaticResource ButtonSmallStyle }">
    </Style>

    <Style TargetType="{x:Type RepeatButton}"
           BasedOn="{StaticResource ButtonSmallStyle }">
    </Style>

    <Style TargetType="{x:Type Button}"
           BasedOn="{StaticResource ButtonSmallStyle }">
    </Style>

</ResourceDictionary>
